# encoding: UTF-8
"""

@author = 李林名
@email = lishuai1199@qq.com
@create_time = 2022/11/24 17:56

"""
from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
from selenium.webdriver.common.action_chains import ActionChains

#1.移动鼠标到具体位置,但是不点击:     百度”更多“
wd = webdriver.Chrome()
wd.get('https://www.baidu.com/')

##鼠标移动到元素上
ac=ActionChains(wd)
ac.move_to_element(wd.find_element(By.CSS_SELECTOR,'[name="tj_briicon"]')).perform()
sleep(3)